package org.common.utils.database.entity.roledispatch;
import org.common.utils.json.JSONTool;

public class RoleDispatch extends AbstractRoleDispatch {
    private RoleDispatchCharacterJsonEntity jsonEntity;

    @Override
    public void setCharacters(String characters) {
        this.jsonEntity = JSONTool.parseObject(characters, RoleDispatchCharacterJsonEntity.class);
    }

    @Override
    public String getCharacters() {
        return JSONTool.toJSONString(jsonEntity);
    }

    public RoleDispatchCharacterJsonEntity getJsonEntity() {
        return jsonEntity;
    }

}
